package com.todo.strategy.online.iface.request;

import com.todo.common.common.entity.CurrentUser;
import com.todo.strategy.online.iface.model.MemoRelationContentModelParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @author azhebuxing
 * @date 2024/11/29 18:55
 * @description
 */
@Data
@Schema(title = "根据主键更新备忘录关联入参", description = "根据主键更新备忘录关联入参")
public class UpdateMemoUserRelationByIdParam {

    private CurrentUser _user;

    @Schema(title = "备忘录关联主键Id", description = "备忘录关联主键Id")
    private Long memoUserRelationId;

    @Schema(title = "关联详情数据", description = "关联详情数据")
    private MemoRelationContentModelParam contentModel;

    @Schema(title = "是否完成", description = "是否完成")
    private Integer isFinish;

    @Schema(title = "备注信息", description = "备注信息")
    private String remark;

    public boolean baseCheck() {
        if (memoUserRelationId == null || contentModel == null || isFinish == null) {
            return false;
        }
        return true;
    }
}
